/*
 * @Author: your name
 * @Date: 2021-03-16 11:05:42
 * @LastEditTime: 2021-10-25 16:02:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /fytsoa_3.1/admin/src/api/sys/fileinfo.js
 */
import request from '@/utils/request'
export function getFileList(params) {
  return request({
    url: 'api/sysfileinfo/pages',
    method: 'get',
    params,
  })
}
export function fileadd(data) {
  return request({
    url: 'api/sysfileinfo',
    method: 'post',
    data,
  })
}
export function fileupdate(data) {
  return request({
    url: 'api/sysfileinfo',
    method: 'put',
    data,
  })
}

export function filemove(data) {
  return request({
    url: 'api/sysfileinfo/move',
    method: 'put',
    data,
  })
}
export function filecopy(data) {
  return request({
    url: 'api/sysfileinfo/copy',
    method: 'put',
    data,
  })
}
export function filerename(data) {
  return request({
    url: 'api/sysfileinfo/rename',
    method: 'put',
    data,
  })
}
export function filedeletes(data) {
  return request({
    url: 'api/sysfileinfo/' + data,
    method: 'delete',
  })
}
